<template>
	<view class="container">
		<!-- 第一个页面 -->
		<seele-tianfei1 v-if="shop_id==0" :shop_id="shop_id"></seele-tianfei1>
		<!-- 第二个页面 -->
		<seele-tianfei2 v-else :shop_id="shop_id"></seele-tianfei2>
		<!-- <seele-tianfei2></seele-tianfei2> -->
		
	</view>
</template>

<script>
	import {mapState} from 'vuex';
	export default {
		computed: {...mapState(['seele'])},
		data() {
			return {
				shop_id:0,
			}
		},
		onLoad(options){
			console.log(options);
			if('shop_id' in options){
				this.shop_id =options.shop_id;
				this.$store.dispatch('seele/loadShopHomeInfo',this.shop_id);
				this.$store.dispatch('seele/freshLocation','商店首页');
			}
		},
	}
</script>

<style lang="scss" scoped>
	.container {}

	
</style>